/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2024-10-13
 * Time:11:18
 */
public class Test {
    public static void main(String[] args) {
        int i=100;
        while(i<=200){
            if(i%3!=0){
                i++;//这里不要忘记++，否则会死循环
                continue;
            }
            System.out.println(i);
            i++;
        }
    }
    public static void main8(String[] args) {
        int i=100;
        while(i<=200){
            if(i%3==0){
                break;
            }
            i++;
        }
        System.out.println(i);
    }
    public static void main7(String[] args) {
        int m=1;
        int sum=0;
        while(m<=5){
            int n=1;
            int ret=1;
            while(n<=m){
                ret*=n;
                n++;
            }
            sum+=ret;
            m++;
        }
        System.out.println(sum);
    }
    public static void main6(String[] args) {
        int n=1;
        int ret=1;
        while(n<=5){
            ret*=n;
            n++;
        }
        System.out.println(ret);
    }
    public static void main5(String[] args) {
        int num=1;
        int sum=0;
        while(num<=100){
            sum+=num;
            num++;
        }
        System.out.println(sum);
    }
    public static void main4(String[] args) {
        int num=1;
        while(num<=10){
            System.out.println(num);
            num++;
        }
    }
    public static void main3(String[] args) {
        int year=2000;
        if(year%100==0){
            if(year%400==0){
                System.out.println("是闰年");
            }else{
                System.out.println("不是闰年");
            }
        }else{
            if(year%4==0){
                System.out.println("是闰年");
            }else{
                System.out.println("不是闰年");
            }
        }
    }
    public static void main2(String[] args) {
        int num=10;
        if(num>0){
            System.out.println("是正数");
        } else if (num<0) {
            System.out.println("是负数");
        }else{
            System.out.println("0");
        }
    }
    public static void main1(String[] args) {
        int num = 10;
        if (num % 2 == 0) {
            System.out.println("num是偶数");
        } else {
            System.out.println("num是奇数");
        }
    }
}